-
Notifications
You must be signed in to change notification settings - Fork 4
feat(alarms): Support filtering alarms by source #432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Ahalya-ni
merged 40 commits into
main
from
users/ahalya/feat/alarms/source-filter-final-2.0
Oct 16, 2025
Merged
feat(alarms): Support filtering alarms by source #432
Ahalya-ni
merged 40 commits into
main
from
users/ahalya/feat/alarms/source-filter-final-2.0
Oct 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
8a0c1e1
to
0825cd9
Compare
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
… into users/ahalya/refactor/ahalya/move-reusable-to-utils
b285e8d
to
6781f63
Compare
manisha-ni
requested changes
Oct 13, 2025
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
6781f63
to
471fba2
Compare
manisha-ni
approved these changes
Oct 14, 2025
src/datasources/alarms/constants/AlarmsQueryBuilder.constants.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
9420e47
to
78647b7
Compare
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
rajsite
approved these changes
Oct 15, 2025
kartheeswaran-ni
approved these changes
Oct 16, 2025
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
Signed-off-by: Ahalya Radhakrishnan <[email protected]>
f726b8c
to
e4f05e3
Compare
Base automatically changed from
users/ahalya/refactor/ahalya/move-reusable-to-utils
to
main
October 16, 2025 06:52
… into users/ahalya/feat/alarms/source-filter-final-2.0
Ahalya-ni
pushed a commit
that referenced
this pull request
Oct 16, 2025
## [4.21.0](v4.20.0...v4.21.0) (2025-10-16) ### Features * **alarms:** Support filtering alarms by source ([#432](#432)) ([3754c6f](3754c6f))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
🤨 Rationale
User Story 3283281: FE | Handle filter transformation in Query builder
Task 3249469: Add source filter support to alarms query builder
This PR adds support for source filtering in the alarms query builder component.
👩💻 Implementation
AlarmsQueryBuilderFields
, including its data field, label, and supported filtering operators.properties.system <operator> <value> || properties.minionId <operator> <value>
.SourceProperties.constant
to store the custom properties for reusability.query-builder.utils.ts
previously namedgetLogicalOperator
to be used for combining system and minionId expressions.getConcatOperatorForMultiExpression
belowmultipleValuesQuery
since it is now a public method; this file is organized with public methods at the top and private methods below.getLogicalOperator
togetConcatOperatorForMultiExpression
to better reflect its purpose, as it is used for combining multi-value expressions (e.g., {value1, value2}) as well as conditions like those used for source (system and minionId expressions).getConcatOperatorForMultiExpression
to return logical OR forisnotblank
operator as its transformation logic is already in place.Another approach
Another approach I considered was introducing separate query builder operators to handle source-related transformations directly within the expression builder callback of the query builder. This alternative did work, but it has a drawback: the resulting source expressions (such as
(properties.system = "test-source" || properties.minionId = "test-source")
) are not parsed by the query builder, which leads to an empty expression in the reader callback. For more details, refer to the prototype and the relevant branch.🧪 Testing
Added unit tests
✅ Checklist